package cn.edu.scau.cmi.zhuyuxian.interProgramming.experiment7.pojo;
import java.util.HashSet;
import java.util.Set;
public class Teacher {
	public Teacher() {
	}
	public Teacher(String id, String name) {
		this.id = id;
		this.name = name;
	}
	public Teacher(String id, String name, Set<Student> students) {
		this.id = id;
		this.name = name;
		this.students = students;
	}

	private String id;
	private String name;
	private Set<Student> students = new HashSet<Student>();

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set getStudents() {
		return this.students;
	}

	public void setStudents(Set students) {
		this.students = students;
	}
	
	@Override
	public String toString() {
		return this.name;
	}
}
